import Mock from "mockjs";
import permissionApi from "./permission";
import userApi from "./user";

// 设置200-2000毫秒延时请求数据
Mock.setup({
  timeout: "200-2000"
});

// 权限相关
Mock.mock(/\/permission\/getMenu/, "post", permissionApi.getMenu);
Mock.mock(/\/user\/getUser/, "get", userApi.getUserList);
Mock.mock(/\/user\/edit/, "post", userApi.updateUser);
Mock.mock(/\/user\/del/, "get", userApi.deleteUser);
Mock.mock(/\/user\/createUser/, "post", userApi.createUser);
